$OpenBSD: patch-configure,v 1.5 2015/07/14 03:21:15 ajacoutot Exp $

Fix relocation errors on (at least) sparc64.

We don't want extra debug flags in regular builds.

--- configure.orig	Fri Apr 24 19:22:03 2015
+++ configure	Mon Jul 13 09:11:27 2015
@@ -6979,6 +6979,7 @@ else
 	bsdi4.*)	CCPIC="-fPIC" ;;
 	bsdi*)		CCPIC="" ;;
 	darwin*)	CCPIC="-fPIC" ;;
+	openbsd*)	CCPIC="-fPIC" ;;
 	# Could also use -fpic, depending on the number of symbol references
 	solaris*)	CCPIC="-fPIC" ;;
 	cygwin*)	CCPIC="" ;;
@@ -7660,7 +7661,7 @@ if test x$GCC = xyes ; then
   if $CC --version | grep '^2\.96$' 1>/dev/null 2>&1; then
     true
   else
-    CFLAGS="$CFLAGS -ggdb3"
+    CFLAGS="$CFLAGS"
   fi
   # FIXME: It would be better to actually test if this option works and/or is needed.
   # Or perhaps use -funsigned-char.
